package pipe

import (
	"net"
)

type Listen struct {
	port         int    //占用端口
	sn           string //sn
	addr         string //映射的地址
	net.Listener        //tcp服务
}

func (this *Listen) setAddr(addr string) {
	if len(addr) == 0 {
		addr = "127.0.0.1:80"
	}
	this.addr = addr
}

func (this *Listen) getAddr() string {
	return this.addr
}

func (this *Listen) setSn(sn string) {
	this.sn = sn
}

func (this *Listen) getSn() string {
	return this.sn
}

func (this *Listen) getPort() int {
	return this.port
}
